import { App } from 'vue';
import ReadProgress from './components/ReadProgress.vue';

interface Cop {
    name: string;
    component: any;
}

const components: Array<Cop> = [
    {
        name: 'read-progress',
        component: ReadProgress
    }
];

export default {
    install: (app: App) => {
        components.map(cop => {
            app.component(cop.name, cop.component);
        });
    }
};
